<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<link rel="stylesheet" th:href="@{css/table.css}">
<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
<!--topbar-->
<!--上架MP3商品-->
<div th:fragment="mp3">
    <link rel="stylesheet" href="css/table.css">
    <!--/*@thymesVar id="mp3" type="com.example.login.Pojo.MP3"*/-->
    <!--/*@thymesVar id="good" type="com.example.login.Pojo.Goods"*/-->
    <form th:action="@{/mp3Upload}" method="post" enctype="multipart/form-data">
        <table class="table1" border="1" cellspacing="0" width="1110px">
            <tr>
                <td class="td1">商品名称:</td>
                <td class="td2"><input type="text" th:field="${good.item_name}" /></td>
            </tr>
            <tr>
                <td class="td1">特色服务：</td>
                <td class="td2">
                    <input type="specialService" name="combination" th:field="${mp3.combination}">
                </td>
            </tr>
            <tr>
                <td class="td1">品牌:</td>
                <td class="td2">
                   <input type="text" th:field="${good.brand_name}">
                </td>
            </tr>
            <tr>
                <td class="td1">存储容量：</td>
                <td class="td2">
                    <select name="" id="22" th:field="${mp3.ROM}">
                        <option value="4g">4g</option>
                        <option value="16g">16g</option>
                        <option value="32g">32g</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td class="td1">颜色：</td>
                <td class="td2">
                  <input type="text" th:field="${mp3.color}">
                </td>
            </tr>

            <tr>
                <td class="td1">售价：</td>
                <td class="td2"><input type="number" th:field="${mp3.price}">￥</td>
            </tr>
            <tr>
                <td class="td1">运费：</td>
                <td class="td2"><input type="number" name ="fright" th:field="${good.fright}">￥</td>
            </tr>
            <tr>
                <td class="td1">库存：</td>
                <td class="td2"><input type="number" th:field="${mp3.num}"></td>
            </tr>
            <tr>
                <td class="td1">图片:</td>
                <td class="td2">
                    <input type="file" th:name="file" accept="image/*" onchange="showImg(this)"/>

                </td>
                <td>
                    <img th:src="@{'/Image/'+${mp3.id}+${mp3.sku_code}+'/'+${mp3.image}}" alt="" id="img">
                </td>
            </tr>
            <tr>
                <td class="td1">商品介绍： </td>
                <td class="td2">
                    <textarea name="introduction" th:field="${mp3.introduction}"maxlength="1000" rows="10" cols="40" wrap="soft" spellcheck="true">请输入你的商品介绍</textarea>
                    </textarea>
                </td>


            </tr>
            <tr>
                <td><p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}">/p></td>
                <td class="bu"><button  style="padding-right: 50px" type="submit" onclick="">确认添加</button></td>
            </tr>

        </table>

    </form> </div>
<!--上架手机商品-->
<div th:fragment="mobile">
    <link rel="stylesheet" href="css/table.css">
    <!--/*@thymesVar id="mobile" type="com.example.login.Pojo.MobilePhone"*/-->
    <!--/*@thymesVar id="good" type="com.example.login.Pojo.Goods"*/-->
    <form th:action="@{/mobileUpload}" method="post" enctype="multipart/form-data">

        <table  class="table1" border="1" cellspacing="0" width="1110px">
            <tr>
                <td class="td1">商品名称:</td>
                <td class="td2"><input type="text" th:field="${good.item_name}"></td>
            </tr>
            <tr>
                <td class="td1">特色服务：</td>
                <td class="td2">
                    <input type="text" th:field="${mobile.combination}">
                </td>
            </tr>
            <p style="color: #ff0000" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
            <tr>
                <td class="td1">品牌:</td>
                <td class="td2">
                    <input type="text" th:field="${good.brand_name}">
                </td>
            </tr>
            <tr>
                <td class="td1">内存：</td>
                <td class="td2">
                    <select th:field="${mobile.ROM}" >
                        <option value="64g">64g</option>
                        <option value="128g">128g</option>
                        <option value="256g">256g</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="td1">运存：</td>
                <td class="td2">
                    <select th:field="${mobile.RAM}" >
                        <option value="8g">8g</option>
                        <option value="16g">16g</option>
                        <option value="32g">32g</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="td1">网络类型：</td>
                <td class="td2">
                    <select th:field="${mobile.network}">
                        <option value="4g">4g</option>
                        <option value="4g双卡双待">4g双卡双待</option>
                        <option value="5g">5g</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="td1">颜色：</td>
                <td class="td2">
                    <input type="text" th:field="${mobile.color}">
                </td>
            </tr>
            <tr>
                <td class="td1">售价：</td>
                <td class="td2"><input type="number" th:field="${mobile.price}">￥</td>
            </tr>
            <tr>
                <td class="td1">运费：</td>
                <td class="td2"><input type="number" th:field="${good.fright}">￥</td>
            </tr>
            <tr>
                <td class="td1">库存：</td>
                <td class="td2"><input type="number" th:field="${mobile.num}"></td>
            </tr>
            <tr>
                <td class="td1">图片:</td>
                <td class="td2">
                    <input type="file" name="file" accept="image/*" />
                </td>
            </tr>

            <tr>
                <td class="td1">商品介绍： </td>
                <td class="td2">
                    <textarea name="introduction" th:field="${mobile.introduction}"maxlength="1000" rows="10" cols="40" wrap="soft" spellcheck="true">请输入你的商品介绍</textarea>
                    </textarea>
                </td>
            </tr>
            <tr>
                <td><p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p></td>
                <td class="bu"><button  style="padding-right: 50px" type="submit" onclick="">确认添加</button></td>
            </tr>
        </table>
    </form>

</div>
<!--上架电脑商品-->
<div th:fragment="pc">
    <!--/*@thymesVar id="pc" type="com.example.login.Pojo.PC"*/-->
    <!--/*@thymesVar id="good" type="com.example.login.Pojo.Goods"*/-->
    <form th:action="@{/pcUpload}"  method="post" enctype="multipart/form-data">
        <link rel="stylesheet" href="css/table.css">
        <table class="table1" border="1" cellspacing="0" width="1110px">
            <tr>
                <td class="td1">商品名称:</td>
                <td class="td2">
                <input type="text" name="itemName"th:field="${good.item_name}" /></td>
            </tr>
            <tr>
                <td class="td1">特色服务：</td>
                <td class="td2">
                    <input type="text" name="specialService" th:field="${pc.combination}">
                </td>
            </tr>

            <tr>
                <td class="td1">品牌:</td>
                <td class="td2">
                    <input type="text" th:field="${good.brand_name}">
                </td>
            </tr>

            <tr>
                <td class="td1">硬盘容量：</td>
                <td class="td2">
                    <select name="ROM" th:filed="${pc.ROM}">
                        <option value="256g">256g</option>
                        <option value="512g">512g</option>
                        <option value="1t">1t</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td class="td1">内存容量：</td>
                <td class="td2">
                    <select name="RAM" th:filed="${pc.RAM}">
                        <option value="4g">4g</option>
                        <option value="8g">8g</option>
                        <option value="16g">16g</option>
                        <option value="32g">32g</option>
                        <option value="64g">64g</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td class="td1">颜色：</td>
                <td class="td2">
                    <input type="text" th:field="${pc.color}">
                </td>
            </tr>

            <tr>
                <td class="td1">售价：</td>
                <td class="td2"><input type="number"name="price" th:field="${pc.price}">￥</td>
            </tr>
            <tr>
                <td class="td1">运费：</td>
                <td class="td2"><input type="number" name="fright" th:field="${good.fright}">￥</td>
            </tr>
            <tr>
                <td class="td1">库存：</td>
                <td class="td2"><input type="number" name="num" th:field="${pc.num}"></td>
            </tr>
            <tr>
                <td class="td1">图片:</td>
                <td class="td2">
                    <input type="file" name="file" accept="image/*" onchange="showImg(this)"/>
                </td>
            </tr>

            <tr>
                <td class="td1">商品介绍： </td>
                <td class="td2">
                    <textarea name="introduction" th:field="${pc.introduction}"maxlength="1000" rows="10" cols="40" wrap="soft" spellcheck="true">请输入你的商品介绍</textarea>
                    </textarea>
                </td>
            </tr>
            <tr>
                <td><p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p></td>
                <td class="bu"><button  style="padding-right: 50px" type="submit" onclick="">确认添加</button></td>
            </tr>
        </table>


    </form> </div>
<!--我的订单-->
<div th:fragment="order">
    <link rel="stylesheet" href="css/table.css">
    <div class="xst-VIP table1">
        <div class="xst-myOrder">
            <div class="xst-MyCollection">我的订单</div>
            <div class="xst-orderInquiry">
                <input type="text" class="text" value="请输入订单编号"><input class="button" type="button" value="查询">
                <select name="zhuangtai" id="">
                    <option value="1">全部订单</option>
                </select>
                <select name="shijian" id="">
                    <option value="1">全部时间</option>
                </select>
            </div>
        </div>
        <div class="xst-orderDetail">
            <div class="xst-orderTitle">
                <ul class="xst-outerTitleul clear">
                    <li>主订单号：<span>AA14090410622664</span></li>
                    <li>下单时间：<span>2014-09-04 20:41:16</span></li>
                    <li>支付方式：<span>银联支付</span></li>
                    <li>支付余额：<span class="red">￥5171.00</span></li>
                    <li>支付状态：<span class="red">未支付</span></li>
                </ul>
                <input type="button"value="去支付">
                <input type="button"value="取消订单">
            </div>
            <div class="xst-orderGoods">
                <div class="xst-ordernum">
                    <ul class="xst-ordernumul" >
                        <li>订单编号：<span>ZDD1409041062266</span></li>
                        <li>商家名称：<span>小淘软件项目组赞助的公司</span></li>
                        <li class="ts">物流状态：<span>已签收</span></li>
                        <li>订单金额：<span>￥29301.00</span></li>
                    </ul>
                </div>
                <div class="xst-orderimg clear">
                    <div class="xst-orderimgl">
                        <img src="../../images/order-img.png" height="105" width="725" alt="">
                    </div>
                    <div class="xst-orderbutton">
                        <input type="button" value="订单详情"><br>
                        <!-- <input class="red" type="button" value="再次购买"> -->
                    </div>
                    <div class="xst-serialnum">1</div>
                </div>
            </div>
            <div class="xst-orderGoods">
                <div class="xst-ordernum">
                    <ul class="xst-ordernumul" >
                        <li>订单编号：<span>ZDD1409041062266</span></li>
                        <li>商家名称：<span>河南周口夏知秋什么毛用没有逗你乐名字就这样吧公司</span></li>
                        <li class="ts">物流状态：<span>已签收</span></li>
                        <li>订单金额：<span>￥29301.00</span></li>
                    </ul>
                </div>
                <div class="xst-orderimg  clear">
                    <div class="xst-orderimgl">
                        <img src="../../images/order-img.png" height="105" width="725" alt="">
                    </div>
                    <div class="xst-orderbutton">
                        <input type="button" value="订单详情"><br>
                        <!-- <input class="red" type="button" value="再次购买"> -->
                    </div>
                    <div class="xst-serialnum">2</div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--商品列表-->
<div  th:fragment="itemList">
    <script type="text/javascript" th:src="@{js/table2.js}"src="table2.js"></script>
    <link rel="stylesheet" th:href="@{css/table.css}">
    <!--/*@thymesVar id="pcGoods" type="List<com.example.login.Pojo.PCGoods>"*/-->

    <form action="">
        <table class="table1" border="0" style="table-layout: fixed; width: 800px; position: absolute; left: 100px;top: 10px;">
            <!--电脑-->
            <div th:each="pc:${pcGoods}">
                <tr>
                    <td>
                        <table border="1" style="position: relative; left: 0px;">
                            <tr>
                                <td><img th:src="@{'/Image/'+${pc.id}+${pc.sku_code}+'/'+${pc.image}}" width="200px"></td>
                                <td valign="top">
                                   <table>
                                        <tr>
                                            <td width="250"><b color="blue">商品名称:</b><!--/*@thymesVar id="item_name" type="String"*/-->
                                            <b th:text="${pc.item_name}"></b></td>
                                        </tr>

                                        <tr>
                                            <td style="word-break: keep-all;">商品属性：</td>
                                            <td th:text="'颜色：'+${pc.color}"style="word-break: keep-all;">商品属性：</td>
                                            <td th:text="'ROM：'+${pc.ROM}"style="word-break: keep-all;">商品属性：</td>
                                            <td th:text="'RAM：'+${pc.RAM}"style="word-break: keep-all;">商品属性：</td>
                                        </tr>


                                        <tr valign="top">
                                            <td th:text="'价格￥:'+${pc.price}"></td>
                                        </tr>
                                        <tr>
                                            <td th:text="'运费￥:'+${pc.fright}"></td>
                                        </tr>
                                        <tr>
                                            <td th:text="'库存:'+${pc.num}"></td>
                                        </tr>

                                   </table>

                                    <table border="0" width="725">
                                        <tr>
                                            <td>商品介绍：</td>
                                        </tr>
                                        <tr>
                                            <td style="word-break: keep-all;"th:text="${pc.introduction}">
                                            </td>
                                        </tr>
                                    </table>

                                    <table border="0">
                                        <tr>
                                            <!--<td bgcolor="#dc143c" width="120" align="center"><font color="#f0ffff">加入购物车</font></td>-->
                                            <td>状态：<p th:style="${pc.status}?'color: blue':'color:red'"type="text" th:text="${pc.status}?'在架售卖1':'已下架'" ></td>
                                            <td  width="80" align="center">
                                                <button><a  th:href="@{'/merchant/status/'+${pc.id}+'/'+${pc.sku_code}}" th:text="${pc.status}?'下架':'上架'"</a></button>
                                            </td>
                                            <td  width="80" align="center">
                                                <button><a  th:href="@{'/merchant/delete/'+${pc.id}+'/'+${pc.sku_code}}" </a>删除</button>
                                            </td>
                                            <td><a th:href="@{'/merchant/change/'+${pc.id}+'/'+${pc.sku_code}}"><input type="button" value="修改信息"></a></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </div>
            <!--手机-->
            <div th:each="mobile:${mobileGoods}">
                <tr>
                    <td>
                        <table border="1" style="position: relative; left: 0px;">
                            <tr>
                                <td><img th:src="@{'/Image/'+${mobile.id}+${mobile.sku_code}+'/'+${mobile.image}}" width="200px"></td>
                                <td valign="top">
                                    <table>
                                        <tr>
                                            <td width="250"><b color="blue">商品名称:</b><!--/*@thymesVar id="item_name" type="String"*/-->
                                                <b th:text="${mobile.item_name}"></b></td>
                                        </tr>

                                        <tr>
                                            <td style="word-break: keep-all;">商品属性：</td>
                                            <td th:text="'颜色：'+${mobile.color}"style="word-break: keep-all;">商品属性：</td>
                                            <td th:text="'ROM：'+${mobile.ROM}"style="word-break: keep-all;">商品属性：</td>
                                            <td th:text="'RAM：'+${mobile.RAM}"style="word-break: keep-all;">商品属性：</td>
                                        </tr>


                                        <tr valign="top">
                                            <td th:text="'价格￥:'+${mobile.price}"></td>
                                        </tr>
                                        <tr>
                                            <td th:text="'运费￥:'+${mobile.fright}"></td>
                                        </tr>
                                        <tr>
                                            <td th:text="'库存:'+${mobile.num}"></td>
                                        </tr>
                                        <tr>
                                            <td th:text="'网络类型:'+${mobile.network}"></td>
                                        </tr>

                                    </table>

                                    <table border="0" width="725">
                                        <tr>
                                            <td>商品介绍：</td>
                                        </tr>
                                        <tr>
                                            <td style="word-break: keep-all;"th:text="${mobile.introduction}">
                                            </td>
                                        </tr>
                                    </table>

                                    <table border="0">
                                        <tr>
                                            <!--<td bgcolor="#dc143c" width="120" align="center"><font color="#f0ffff">加入购物车</font></td>-->
                                            <td>状态：<p th:style="${mobile.status}?'color: blue':'color:red'"type="text" th:text="${mobile.status}?'在架售卖1':'已下架'" ></td>
                                            <td  width="80" align="center"><button><a  th:href="@{'/merchant/status/'+${mobile.id}+'/'+${mobile.sku_code}}" th:text="${mobile.status}?'下架':'上架'"></a></button></td>
                                            <td  width="80" align="center">
                                                <button><a  th:href="@{'/merchant/delete/'+${mobile.id}+'/'+${mobile.sku_code}}" </a>删除</button>
                                            </td>
                                            <td><a th:href="@{'/merchant/change/'+${mobile.id}+'/'+${mobile.sku_code}}"><input type="button" value="修改信息"></a></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </div>
<!--            mp3-->
            <!--/*@thymesVar id="mp3Goods" type=""*/-->
            <div th:each="mp3:${mp3Goods}">
                <tr>
                    <td>
                        <table border="1" style="position: relative; left: 0px;">
                            <tr>
                                <td><img th:src="@{'/Image/'+${mp3.id}+${mp3.sku_code}+'/'+${mp3.image}}" width="200px"></td>
                                <td valign="top">
                                    <table>
                                        <tr>
                                            <td width="250"><b color="blue">商品名称:</b>
                                                <b th:text="${mp3.item_name}"></b></td>
                                        </tr>

                                        <tr>
                                            <td style="word-break: keep-all;">商品属性：</td>
                                            <td th:text="'颜色：'+${mp3.color}"style="word-break: keep-all;">商品属性：</td>
                                            <td th:text="'ROM：'+${mp3.ROM}"style="word-break: keep-all;">商品属性：</td>
                                        </tr>


                                        <tr valign="top">
                                            <td th:text="'价格￥:'+${mp3.price}"></td>
                                        </tr>
                                        <tr>
                                            <td th:text="'运费￥:'+${mp3.fright}"></td>
                                        </tr>
                                        <tr>
                                            <td th:text="'库存:'+${mp3.num}"></td>
                                        </tr>

                                    </table>

                                    <table border="0" width="725">
                                        <tr>
                                            <td>商品介绍：</td>
                                        </tr>
                                        <tr>
                                            <td style="word-break: keep-all;"th:text="${mp3.introduction}">
                                            </td>
                                        </tr>
                                    </table>

                                    <table border="0">
                                        <tr>
                                            <!--<td bgcolor="#dc143c" width="120" align="center"><font color="#f0ffff">加入购物车</font></td>-->
                                            <td>状态：<p th:style="${mp3.status}?'color: blue':'color:red'"type="text" th:text="${mp3.status}?'在架售卖1':'已下架'" ></td>
                                            <td  width="80" align="center">
                                                <button><a  th:href="@{'/merchant/status/'+${mp3.id}+'/'+${mp3.sku_code}}" th:text="${mp3.status}?'下架':'上架'"></a></button>
                                            </td>
                                            <td  width="80" align="center">
                                                <button><a  th:href="@{'/merchant/delete/'+${mp3.id}+'/'+${mp3.sku_code}}" </a>删除</button>
                                            </td>
                                            <td><a th:href="@{'/merchant/change/'+${mp3.id}+'/'+${mp3.sku_code}}"><input type="button" value="修改信息"></a></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </div>
        </table>




    </form>

    <!--/*@thymesVar id="mobileGoods" type=""*/-->

</div>

<!--修改MP3商品-->
<div th:fragment="changeMp3">
    <link rel="stylesheet" href="css/table.css">
    <!--/*@thymesVar id="mp3good" type="com.example.login.Pojo.mp3Goods"*/-->
    <form th:action="@{'/merchant/mp3Change/'+${mp3good.id}}" th:object="${mp3good}" method="post" enctype="multipart/form-data">
        <table class="table1" border="1" cellspacing="0" width="1110px">
            <tr>
                <td class="td1">商品名称:</td>
                <td class="td2"><input type="text"readonly="readonly" name="item_name" th:field="*{item_name}"></input></td>
            </tr>
            <tr>
                <td class="td1">特色服务：</td>
                <td class="td2">
                    <input type="text" name="combination" th:field="*{combination}"></input>
                </td>
            </tr>
            <tr>
                <td class="td1">品牌:</td>
                <td class="td2">
                    <input readonly="readonly" type="text" name="brand" th:field="*{brand_name}"></input>
                </td>
            </tr>
            <tr>
                <td class="td1" >ROM</td>
                <td class="td2">
                    <input readonly="readonly" type="text" name="ROM" th:field="*{ROM}"></input>
                </td>

            </tr>

            <tr>
                <td class="td1" >颜色：</td>
                <td class="td2">
                    <input readonly="readonly" type="text" name="color" th:field="*{color}"></input>
                </td>
            </tr>

            <tr>
                <td class="td1">售价：</td>
                <td class="td2"><input type="number" th:field="*{price}">￥</td>
            </tr>
            <tr>
                <td class="td1">运费：</td>
                <td class="td2"><input type="number" name ="fright" th:field="*{fright}">￥</td>
            </tr>
            <tr>
                <td class="td1">库存：</td>
                <td class="td2"><input type="number" th:field="*{num}"></td>
            </tr>
            <tr>
                <td class="td1">图片:</td>
                <td class="td2">
                    <input type="file" th:name="file" accept="image/*" onchange="showImg(this)"/>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td> <img th:src="@{'/Image'+*{id}+*{sku_code}+'/'+*{image}}"   width="200px"alt="" id="img"></td>
            </tr>

            <tr>
                <td class="td1">商品介绍： </td>
                <td class="td2">
                    <textarea name="introduction" th:field="*{introduction}"maxlength="1000" rows="10" cols="40" wrap="soft" spellcheck="true">请输入你的商品介绍</textarea>
                    </textarea>
                </td>

            </tr>
            <tr>
                <td><p style="color: #ff0000" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}">/p></td>
                <td class="bu">
                    <button  style="padding-right: 50px" type="submit">确认修改</button></td>
                </td>
            </tr>

        </table>

    </form>
</div>
<!--修改手机商品-->
<div th:fragment="changeMobile">
    <link rel="stylesheet" href="css/table.css">
    <!--/*@thymesVar id="mobile" type="com.example.login.Pojo.mobileGoods"*/-->
    <form th:action="@{'/merchant/mobileChange/'+${mobile.getId()}}" th:object="${mobile}" method="post" enctype="multipart/form-data">

        <table  class="table1" border="1" cellspacing="0" width="1110px">
            <tr>
                <td class="td1">商品名称:</td>
                <td class="td2"><input type="text"readonly="readonly" th:field="*{item_name}"></td>
            </tr>
            <tr>
                <td class="td1">特色服务：</td>
                <td class="td2">
                    <input type="text"  th:field="*{combination}">
                </td>
            </tr>
            <p style="color: #ff0000" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
            <tr>
                <td class="td1">品牌:</td>
                <td class="td2">
                    <input type="text" readonly="readonly" th:field="*{brand_name}">

                </td>
            </tr>
            <tr>
                <td class="td1">内存：</td>
                <td class="td2">
                    <input type ="text" readonly="readonly" th:field="*{ROM}" >
                </td>
            </tr>
            <tr>
                <td class="td1">运存：</td>
                <td class="td2">
                    <input type ="text" readonly="readonly" th:field="*{RAM}" >
                </td>
            </tr>
            <tr>
                <td class="td1">网络类型：</td>
                <td class="td2">
                    <input type ="text" readonly="readonly" th:field="*{network}" >
                </td>
            </tr>
            <tr>
                <td class="td1">颜色：</td>
                <td class="td2">
                    <input type ="text" readonly="readonly" th:field="*{color}" >
                </td>
            </tr>
            <tr>
                <td class="td1">售价：</td>
                <td class="td2"><input type="number" th:field="*{price}">￥</td>
            </tr>
            <tr>
                <td class="td1">运费：</td>
                <td class="td2"><input type="number" th:field="*{fright}">￥</td>
            </tr>
            <tr>
                <td class="td1">库存：</td>
                <td class="td2"><input type="number" th:field="*{num}"></td>
            </tr>
            <tr>
                <td class="td1">图片:</td>
                <td class="td2">
                    <input type="file" th:name="file" accept="image/*" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td> <img th:src="@{'/Image/'+*{id}+*{sku_code}+'/'+*{image}}"   width="200px"alt="" id="img"></td>
            </tr>
            <tr>
                <td class="td1">商品介绍： </td>
                <td class="td2">
                    <textarea name="introduction" th:field="*{introduction}"maxlength="1000" rows="10" cols="40" wrap="soft" spellcheck="true">请输入你的商品介绍</textarea>
                    </textarea>
                </td>
            </tr>
            <tr>
                <td> <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}">/p></td>
                <td class="bu"><button  style="padding-right: 50px" type="submit" onclick="">确认修改</button></td>
            </tr>
        </table>
    </form>

</div>
<!--修改电脑商品-->
<div th:fragment="changePc">
    <!--/*@thymesVar id="pc" type="com.example.login.Pojo.PCGoods"*/-->
    <form th:object="${pc}" th:action="@{'/merchant/pcChange/'+${pc.id}}"  method="post" enctype="multipart/form-data">
        <link rel="stylesheet" href="css/table.css">
        <table class="table1" border="1" cellspacing="0" width="1110px">
            <tr>
                <td class="td1">商品名称:</td>
                <td class="td2">
                    <input type="text"readonly="readonly" name="itemName"th:field="*{item_name}" /></td>
            </tr>
            <tr>
                <td class="td1">特色服务：</td>
                <td class="td2">
                    <input type="text" name="specialService" th:field="*{combination}">
                </td>
            </tr>

            <tr>
                <td class="td1">品牌:</td>
                <td class="td2">
                    <input readonly="readonly" type="text" name="brand" th:field="*{brand_name}"></input>
                </td>
            </tr>

            <tr>
                <td class="td1">硬盘容量：</td>
                <td class="td2">
                    <input readonly="readonly" type="text" name="ROM" th:field="*{ROM}"></input>
                </td>
            </tr>

            <tr>
                <td class="td1">内存容量：</td>
                <td class="td2">
                    <input readonly="readonly" type="text" name="RAM" th:field="*{RAM}"></input>
                </td>
            </tr>

            <tr>
                <td class="td1">颜色：</td>
                <td class="td2">
                    <input readonly="readonly" type="text" name="color" th:field="*{color}"></input>
                </td>
            </tr>

            <tr>
                <td class="td1">售价：</td>
                <td class="td2"><input type="number"name="price" th:field="*{price}">￥</td>
            </tr>
            <tr>
                <td class="td1">运费：</td>
                <td class="td2"><input type="number" name="fright" th:field="*{fright}">￥</td>
            </tr>
            <tr>
                <td class="td1">库存：</td>
                <td class="td2"><input type="number" name="num" th:field="*{num}"></td>
            </tr>
            <tr>
                <td class="td1">图片:</td>
                <td class="td2">
                    <input type="file" th:name="file"  accept="image/*" onchange="showImg(this)"/>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td> <img th:src="@{'/Image/'+${pc.id}+${pc.sku_code}+'/'+${pc.image}}"   width="200px"alt="" id="img"></td>
            </tr>
            <tr>
                <td class="td1">商品介绍： </td>
                <td class="td2">
                    <textarea name="introduction" th:field="*{introduction}"maxlength="1000" rows="10" cols="40" wrap="soft" spellcheck="true">请输入你的商品介绍</textarea>
                    </textarea>
                </td>
            </tr>
            <tr>
                <td><p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p></td>
                <td class="bu"><button  style="padding-right: 50px" type="submit" onclick="">确认修改</button></td>
            </tr>
        </table>


    </form> </div>
</html>
</html>